package com.itycu.server.domain.business;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.itycu.server.annotation.Excel;
import com.itycu.server.core.domain.BaseNewEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 生产管理对象 pra_produce
 *
 * @author itycu
 * @date 2025-02-25
 */
@TableName("pra_produce")
public class PraProduce extends BaseNewEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 部门状态（0正常 1停用） */
    @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 生产编号 */
    @Excel(name = "生产编号")
    private String code;

    /** 销售编号 */
    @Excel(name = "销售编号")
    private String salecode;

    /** 物料id */
    @Excel(name = "物料id")
    private Long invid;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date date;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptid;

    /** 创建时间 */
    private Date createTime;

    /** 创建者 */
    private Long createBy;

    /** 更新时间 */
    private Date updateTime;

    /** 更新者 */
    private Long updateBy;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setSalecode(String salecode)
    {
        this.salecode = salecode;
    }

    public String getSalecode()
    {
        return salecode;
    }
    public void setInvid(Long invid)
    {
        this.invid = invid;
    }

    public Long getInvid()
    {
        return invid;
    }
    public void setDate(Date date)
    {
        this.date = date;
    }

    public Date getDate()
    {
        return date;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getMemo()
    {
        return memo;
    }
    public void setDeptid(Long deptid)
    {
        this.deptid = deptid;
    }

    public Long getDeptid()
    {
        return deptid;
    }
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getCreateTime()
    {
        return createTime;
    }
    public void setCreateBy(Long createBy)
    {
        this.createBy = createBy;
    }

    public Long getCreateBy()
    {
        return createBy;
    }
    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }
    public void setUpdateBy(Long updateBy)
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy()
    {
        return updateBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("status", getStatus())
                .append("code", getCode())
                .append("salecode", getSalecode())
                .append("invid", getInvid())
                .append("date", getDate())
                .append("delFlag", getDelFlag())
                .append("memo", getMemo())
                .append("deptid", getDeptid())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
